package cn.zhz.dao;

import cn.zhz.pojo.District;

import java.io.Serializable;

public class DistrictDao extends BaseDao {

    public void save(District district) {
        this.currentSession().save(district);
    }

    public District load(Serializable id) {
        return (District) this.currentSession().load(District.class, id);
    }

    public District selectDistrictById(Integer id) {
        return (District) this.currentSession().load(District.class, id);
    }
}
